package com.example.dameng.mapper;

import com.example.dameng.entity.*;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface AdminMapper {
    int addSubInfo(@Param("admininfo") T_admininfo admininfo);

    int deleteSubInfo(@Param("adminCode") int adminCode);

    int updateSubInfo(@Param("admininfo") T_admininfo admininfo);

    int updateSupplyStatus(@Param("supplyStatus")T_supplystatus supplyStatus);

    int updateSupplyLog(@Param("supplyStatus")T_supplystatus supplyStatus);

    //取area表
    List<T_area> GetArea();
    List<AreaList> getAreaInfo();
    List<AreaList> getAreaInfo2(@Param("yesterday") String yesterday,@Param("date") String date);
    List<T_admininfo> getSubInfo();
    List<T_supplystatus> getApplyList();
    AdminReport getMonthReport(@Param("month") String month,@Param("areaName") String areaName);
}
